package com.lanmaoly.web.server.dao;

import com.github.pagehelper.Page;
import com.lanmaoly.web.server.pojo.TbItem;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Mapper
@Repository
public interface TbItemMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TbItem record);

    int insertSelective(TbItem record);


    TbItem selectByPrimaryKey(Long id);


    int updateByPrimaryKeySelective(TbItem record);

    int updateByPrimaryKey(TbItem record);

    Page<TbItem> selectBySearchVo(Map<String, Object> searchMap);

    List<TbItem> selectBySearchMap(Map<String, Object> searchMap);

    Set<String> selectCategoryBySearchMap(Map<String, Object> searchMap);
}